package consts


func GetMsg(code int) string {

	codeToMsg := make(map[int]string)
	codeToMsg [200] = "success"
	codeToMsg [400] = "系统繁忙,请稍后再试"
	codeToMsg [401] = "您无当前操作权限"
	codeToMsg [403] = "您无任何访问权限"
	codeToMsg [404] = "路由未找到"
	codeToMsg [500] = "服务器错误"
	codeToMsg [900] = "登录失效,请重新登录！"
	codeToMsg [999] = "参数错误"
	codeToMsg [1000] = "签名错误"
	codeToMsg [1001] = "请重新登录！"
	codeToMsg [1002] = "token不能为空"
	codeToMsg [1003] = "签名不能为空"

	codeToMsg [1010] = "用户不存在"
	codeToMsg [1011] = "密码错误"
	codeToMsg [1012] = "用户已禁止登录"
	return codeToMsg[code]

}